<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center xuanzeshifu_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub xuanzeshifu_fd0_0'>
          <view class='flex flex-wrap align-center xuanzeshifu_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  xuanzeshifu_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='xuanzeshifu_fd0_0_c1_c0'>选择师傅</text>
          </view>
          <view class='flex flex-wrap align-center justify-end xuanzeshifu_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex benben-flex-layout flex-wrap align-center">
        <template v-for='(item,key0) in dataList'>
          <view class='flex flex-wrap align-center xuanzeshifu_fd1_0' :key='key0' @click="chooseF(item)">
            <view class='flex flex-wrap align-center xuanzeshifu_fd1_0_c0'>
              <image class='xuanzeshifu_fd1_0_c0_c0' mode="aspectFill" :src='item.avatar'></image>
              <image class='xuanzeshifu_fd1_0_c0_c1' mode="aspectFit" :src='STATIC_URL+"49.png"'></image>
            </view>
            <view class='flex flex-direction flex-wrap align-stretch flex-sub xuanzeshifu_fd1_0_c1'>
              <text class='xuanzeshifu_fd1_0_c1_c0'>{{item.nickname}}</text>
              <text class='xuanzeshifu_fd1_0_c1_c1'>{{item.mobile}}</text>
            </view>
          </view>
        </template>

      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'

  export default {
    components: {},


    data() {
      return {
        "dataList": []
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getsc65d1bbfc7f7c3Func()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      chooseF(item) {
        uni.$emit('fhifu', item)
        uni.navigateBack()
      },
      //师傅列表
      async getsc65d1bbfc7f7c3Func() {
        //请求方法
        //数据验证

        let datadataList = await this.$api.get(global.apiUrls.post65d1bbfc7f7c3, {

        });

        if (datadataList.data.code != 1) {
          this.$message.info(datadataList.data.msg);
          return
        }
        let infodataList = datadataList.data;
        this.dataList = infodataList.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
  }

  .xuanzeshifu_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .xuanzeshifu_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .xuanzeshifu_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .xuanzeshifu_fd0_0_c0 {
    width: 120rpx;
  }

  .xuanzeshifu_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .xuanzeshifu_fd1_0_c1_c1 {
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .xuanzeshifu_fd1_0_c1_c0 {
    font-size: 32rpx;
    font-weight: 500;
  }

  .xuanzeshifu_fd1_0_c1 {
    margin: 0rpx 0rpx 0rpx 32rpx;
  }

  .xuanzeshifu_fd1_0_c0_c1 {
    width: 78rpx;
    height: 32rpx;
    position: absolute;
    bottom: -12rpx;
    left: 12rpx;
    z-index: 2;
  }

  .xuanzeshifu_fd1_0_c0_c0 {
    width: 96rpx;
    height: 96rpx;
    border-radius: 100rpx;
  }

  .xuanzeshifu_fd1_0_c0 {
    position: relative;
  }

  .xuanzeshifu_fd1_0 {
    width: 702rpx;
    margin: 24rpx auto 0rpx auto;
  }
</style>
